package com.haocang.filedemo.handler.send;


import com.haocang.filedemo.config.MqttConstant;
import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.integration.mqtt.support.MqttHeaders;
import org.springframework.messaging.Message;
import org.springframework.messaging.handler.annotation.Header;

@MessagingGateway(defaultRequestChannel = MqttConstant.OUTPUT_DATA_MQTT)
public interface MessageGateway {

    void sendToMqtt(String data, @Header(MqttHeaders.TOPIC) String topic);

}
